<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
	<h:form>
		<h:dataTable value="#{accountList.accounts}" var="item">
			<h:column>
				<f:facet name="header">
					<h:outputText value="Konta" />
				</f:facet>
				<h:commandLink value="#{item.name} ( #{item.value} )" action="#{accountList.action}">
					<f:setPropertyActionListener target="#{accountInfo.id_account}"
						value="#{item.id_account}" />
					<f:setPropertyActionListener target="#{viewManager.menuPosition}"
						value="default" />	
				</h:commandLink>
			</h:column>
		</h:dataTable>
		<h:commandButton action="#{accountList.newAccount()}" value="Dodaj">
			<f:setPropertyActionListener target="#{viewManager.menuPosition}" value="newaccount"/>
		</h:commandButton>
	</h:form>
</ui:composition>